package com.ccloud.blog.modules.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ccloud.blog.modules.blog.domain.BlogComment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author chentailai
 * @since 2019-10-08
 */
public interface BlogCommentMapper extends BaseMapper<BlogComment> {

    /**
     * @return java.util.List<com.ccloud.blog.modules.blog.domain.BlogComment>
     * @author chentl
     * @description 根据blogId获取评论列表
     * @date 2019/10/8 15:59
     * @params [blogId，page]
     * @since JDK 1.7
     */
    List<BlogComment> getCommentListByBlogId(@Param("blogId") Integer blogId, @Param("page") Page<BlogComment> page);

}
